﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace WebApplication2
{
    public partial class WebForm1 : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void Button1_Click(object sender, EventArgs e)
        {
            Label1.Text = "点击<a href='WebForm2.aspx'>跳转</a> ";
        }


        protected void Button2_Click(object sender, EventArgs e)
        {
            string a = name.Text;
            string b = pawss.Text;
            Response.Redirect($"WebForm2.aspx?a={name}&b={pawss}");
        }

        protected void Button2_Click1(object sender, EventArgs e)
        {
            string usename1 = Request.Params["name"];
            string pawss1 = Request.Params["pawss"];
            Response.Write("post欢迎您" + usename1 + "你的密码是" + pawss1 + "</br>");
        }
    }
}